<script  lang="ts" setup>
import { ref } from "vue";
import HeadComp from "./components/header-comp.vue";
import UserInfoComp from "./components/userinfo-comp.vue";
import FamilyComp from "./components/family-comp.vue";
import userInfoJson from "../../json/user.json";
import columnJson from "../../json/column.json";
import { avatar } from "../../assets/files";
const familyJson = ref([
  {
    name: "韦冬",
    age: 58,
    sex: 2,
    avatar: avatar,
    relationship: "母亲",
  },
  {
    name: "布馨昭",
    age: 60,
    sex: 1,
    avatar: avatar,
    relationship: "父亲",
  },
]);
</script>

<template>
  <div class="main">
    <!-- 头部信息 -->
    <HeadComp :columnJson="columnJson" :userInfoJson="userInfoJson" />
    <!-- 用户信息 -->
    <UserInfoComp :userInfoJson="userInfoJson" />
    <FamilyComp :familyJson="familyJson" />

    <div class="bottomWrap">
      <div class="btnWrap">
        <span class="btnText">提交服务</span>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.main {
  min-height: 100vh;
  background-color: #f6f7fb;
}

.bottomWrap {
  width: 100%;
  height: 64px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;

  .btnWrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #48b8aa;
    border-radius: 8px;
    padding: 12px 0;
    margin: 24px;

    .btnText {
      color: white;
    }
  }
}
</style>
